Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove confusing job!="" filteringSelector when no selector is required. #1370

Merged
merged 7 commits into from
Dec 11, 2024

Conversation

v-zhuravlev
Copy link
Contributor

since filteringSelector is now optional (can be set to ""),
remove confusing job!="" filteringSelector when no selector is required,
from some mixins/libs:

  • windows
  • kafka-lib
  • zookeeper-lib
  • process-lib
  • jvm-lib

This should help with mixins rendered on
monitoring-mixin website:
https://monitoring.mixins.dev/jvm/

@v-zhuravlev v-zhuravlev requested a review from a team as a code owner December 10, 2024 14:27
@v-zhuravlev v-zhuravlev marked this pull request as draft December 10, 2024 14:51
@v-zhuravlev
Copy link
Contributor Author

v-zhuravlev commented Dec 11, 2024

To pass tests, we need to merge #1372 separately, then rebase here.

Copy link
Member

@Dasomeone Dasomeone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aside from the comments on the dependency PR this looks good :)

@@ -13,6 +13,11 @@ local utils = import '../utils.libsonnet';
prometheusDatasourceName=if enableLokiLogs then 'prometheus_datasource' else 'datasource',
prometheusDatasourceLabel=if enableLokiLogs then 'Prometheus data source' else 'Data source',
): {
// strip trailing or starting comma if present:
// while trailing comman is accepted in PromQL expressions, starting comma is not.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo fix suggestion in dependency PR

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be fixed by merge.

@v-zhuravlev v-zhuravlev marked this pull request as ready for review December 11, 2024 15:41
@v-zhuravlev v-zhuravlev merged commit 43f9639 into master Dec 11, 2024
11 checks passed
@v-zhuravlev v-zhuravlev deleted the no_filteringSelector branch December 11, 2024 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants